package com.tbs.easyhomemoneyserver.model.params

data class AcceptItem<T>(val value: T, val note: String? = null) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is AcceptItem<*>) return false

        if (value != other.value) return false

        return true
    }

    override fun hashCode(): Int {
        return value?.hashCode() ?: 0
    }
}
